package edu.bit.water.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Repository;

import edu.bit.water.entity.Column;
import edu.bit.water.entity.MetaEvaWsrcInfo;

@Mapper
@Repository
public interface MetaEvaWsrcInfoDao {
	ArrayList<MetaEvaWsrcInfo> queryMetaEvaWsrcInfo();
	int queryColumnNumByFaLevel(int faLevel);
	int insertMetaEvaWsrcInfo(MetaEvaWsrcInfo metaSensor) throws DuplicateKeyException;
	int deleteMetaEvaWsrcInfo(String enName);
	List<Column> selectColumn();
    int updateMetaEvaWsrcInfo(MetaEvaWsrcInfo metaEvaWsrcInfo);
}
